home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-06-26 | 2.4 KB | 64 lines | [TEXT/GEOL] |
- Item 2889936 23-May-89 09:44
-
- From: D2086 Efficient Field Svc, C Faith, PRT
-
- To: MACAPP.TECH$ MACAPP Tech
-
- Sub: About CleanupViews
-
- Well,
-
- I have finally written a script that I have been meaning to write for 10
- months. The script called CleanupViews will take the results of a derez of a
- view file and format it removing all the /* Comments */ and substituting the
- correct #define symbols (systemFont, adnNone, black etc.).
-
- It has a -s option that will save the output when finished. It should handle
- all the normal views but I may have missed one, it will still work with any I
- may have missed except they will not be as well formatted.
-
- WARNING: It will really mess up a normal rez input file, i.e. .r files (won't
- delete anything except <returns> but that makes it real hard to read. You
- should use this script on files that contain view resources only.
-
- I generally use a derez -only 'view' command to generate the files.
-
- Here is my Addmenus that I put in my UserStartUp•Curtis file.
-
- Alias DoRez "Rez -o '{MyApp}' -a -ov
- '{MacApp}MacApp Resource Files:ViewTypes.r' '{MyApp}.v' > '{MyOutput}'
- Dev:StdOut"
- export DoRez
- Alias DoDerez "Derez '{MyApp}.rsrc' -only view '{MacApp}MacApp Resource
- Files:ViewTypes.r' > '{MyApp}.derez.out' ≥≥ '{MyOutput}'"
- export DoDerez
- AddMenu "MacApp" "MABuild/B" "Execute '{MyAppFolder}DoMaBuild {MyApp}' >
- '{MyOutput}' ≥≥ Dev:StdOut "
- AddMenu "MacApp" '(-' ''
- AddMenu "MacApp" "ViewEdit" "Execute {MacApp}ViewEdit"
- AddMenu "MacApp" "Derez" DoDerez
- AddMenu "MacApp" '(-' ''
- AddMenu "MacApp" "Cleanup Views" "CleanUpViews"
- AddMenu "MacApp" "Cleanup .derez.out" "CleanUpViews {MyApp}.derez.out"
- AddMenu "MacApp" '(-' ''
- AddMenu "MacApp" "Rez" DoRez
- AddMenu "MacApp" "{MyApp}" {MyApp}
-
- {MyApp} is the pathname representing my current application.
- {MyOutput} is the window I want all the output to go to.
- {MyAppFolder} is the folder where my application resides
- DoMABuild is a script that takes care of any special aliasing etc. before
- calling MABuild
-
- If you only made changes to the MyApp.v file you can use the Rez menu item
- instead of a full MABuild. It is MUCH quicker!
-
- I hope that some of this proves useful to someone. (you've probably already
- done this right?)
-
- Curtis Faith
-
- (P.S. If anyone has any scripting improvement suggestions link me privately)
-
-
-